import request from '@/utils/request'

// 查询礼物列表
export function listGift(query) {
    return request({
        url: '/dynamic/crm/gift/listPage',
        method: 'get',
        params: query
    })
}

// 查询礼物详细
export function getGift(id) {
    return request({
        url: '/dynamic/crm/gift/' + id,
        method: 'get'
    })
}

// 新增礼物
export function addOrEditGift(data) {
    return request({
        url: '/dynamic/crm/gift/addOrEdit',
        method: 'post',
        data: data
    })
}


// 删除礼物
export function delGift(id) {
    return request({
        url: '/dynamic/crm/gift/' + id,
        method: 'delete'
    })
}
